import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import elementUI from 'element-ui';
import * as all from './common'
import VueRouter from 'vue-router'
import i18n from './utils/Language'

import 'element-ui/lib/theme-chalk/index.css'
import './assets/iconfont/iconfont.css'
import './utils/LinkList.js'
import './assets/icons/index.ts'
import './components/component'
import './utils/expand'

Vue.use(elementUI)
Vue.use(VueRouter)

type K = keyof typeof all
Object.keys(all).forEach((key: string) => {
  Vue.prototype['$' + key] = all[key as K]
})
Vue.prototype.$eventBus = new Vue()

Vue.config.productionTip = false;

new Vue({
  i18n,
  router,
  store,
  render: (h) => h(App),
}).$mount('#app');
